package com.jinbai.searcher.web.search_web;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface SearchMapper {
	List<Document> query(
			@Param("word") String word,
			@Param("limit") Integer limit,
			@Param("offset") Integer offset
	);

	List<DocumentWithWeight> queryWithWeight(
			@Param("word") String word,
			@Param("limit") int limit,
			@Param("offset") int offset
	);
}
